#include "mystdio.h"
#include<stdio.h>
int main()
{
  _FILE* fp=_fopen("log.txt","w+");
  //printf("file: %d", fp->fileno);

  const char* str="hello,world\n";
 
  _fwrite(fp,str,strlen(str));
 
  _fseek(fp,0,SEEK_SET);
  

  char ptr[10]="";
  
  _fread(ptr,1,5,fp);

  printf("%s\n",ptr);
  
  _fclose(fp);

  return 0;
}
